#include "trap.h"
#include "basic_test.h"
    .set noat
    .globl main
    .text
main:
    AND_TEST(0x8061, 0x3360, 0x42ad, 0xf91d)
    AND_TEST(0x2a19, 0xdd40, 0xa879, 0x71e0)
    AND_TEST(0xeca4, 0x85a1, 0xacbd, 0x1234)
    AND_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    AND_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)

    NOR_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    NOR_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)       
    NOR_TEST(0xeca4, 0x85a1, 0xacbd, 0x1234)
    NOR_TEST(0x45d5, 0xeda8, 0x2890, 0xffb0)
    NOR_TEST(0xc9c9, 0xc9ca, 0x5ded, 0xedee)

    OR_TEST(0x1257, 0xc7a6, 0x24ac, 0x79b4)
    OR_TEST(0xd043, 0x9d20, 0x210c, 0x4488)
    OR_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    OR_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)
    OR_TEST(0xeca4, 0x85a1, 0xacbd, 0x1234)

    XOR_TEST(0x555b, 0x05c6, 0x555b, 0x05c6)
    XOR_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    XOR_TEST(0xc9c9, 0xc9ca, 0x5ded, 0xedee)
    XOR_TEST(0xe4b6, 0x2124, 0x6f17, 0x72b8)
    XOR_TEST(0x45d5, 0xeda8, 0x2890, 0xffb0)
    HIT_GOOD_TRAP		# stop temu